package com.ruoyi.orders.mapper;

import java.util.List;
import com.ruoyi.orders.domain.TOrderDetail;

/**
 * 订单详情Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public interface TOrderDetailMapper 
{
    /**
     * 查询订单详情
     * 
     * @param detailId 订单详情主键
     * @return 订单详情
     */
    public TOrderDetail selectTOrderDetailByDetailId(Long detailId);

    /**
     * 查询订单详情列表
     * 
     * @param tOrderDetail 订单详情
     * @return 订单详情集合
     */
    public List<TOrderDetail> selectTOrderDetailList(TOrderDetail tOrderDetail);

    /**
     * 新增订单详情
     * 
     * @param tOrderDetail 订单详情
     * @return 结果
     */
    public int insertTOrderDetail(TOrderDetail tOrderDetail);

    /**
     * 修改订单详情
     * 
     * @param tOrderDetail 订单详情
     * @return 结果
     */
    public int updateTOrderDetail(TOrderDetail tOrderDetail);

    /**
     * 删除订单详情
     * 
     * @param detailId 订单详情主键
     * @return 结果
     */
    public int deleteTOrderDetailByDetailId(Long detailId);

    /**
     * 批量删除订单详情
     * 
     * @param detailIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTOrderDetailByDetailIds(Long[] detailIds);
}
